package com.zofer.study.adapter;

/**
 * @description 适配器模式
 * 假如插座要适配IOS和安卓插头,需要搞个适配器进行适配
 * @date: 2020/9/29 17:40
 */
public class Main {

    public static void main(String[] args) {
        Adapter adapter = new Adapter();
        //安卓
        Android android = new Android(adapter);
        //充电
        android.recharge();
        System.out.println("===========================");
        //IOS
        IOS ios = new IOS(adapter);
        //充电
        ios.recharge();
    }
}
